summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authort895 <clombardo169@gmail.com>2024-01-10 19:09:21 +0100
committert895 <clombardo169@gmail.com>2024-01-11 05:14:04 +0100
commit9e974d4c7e44b1067a5c71c56b172eb15c75e43f (patch)
tree1bdfe649f8a861b6ce75aa35d8789be34cc779eb
parentandroid: Rework driver fragment (diff)
downloadyuzu-9e974d4c7e44b1067a5c71c56b172eb15c75e43f.tar
yuzu-9e974d4c7e44b1067a5c71c56b172eb15c75e43f.tar.gz
yuzu-9e974d4c7e44b1067a5c71c56b172eb15c75e43f.tar.bz2
yuzu-9e974d4c7e44b1067a5c71c56b172eb15c75e43f.tar.lz
yuzu-9e974d4c7e44b1067a5c71c56b172eb15c75e43f.tar.xz
yuzu-9e974d4c7e44b1067a5c71c56b172eb15c75e43f.tar.zst
yuzu-9e974d4c7e44b1067a5c71c56b172eb15c75e43f.zip
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt
index 622ae996e..644289e25 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt
@@ -41,6 +41,7 @@ import org.yuzu.yuzu_emu.fragments.AddGameFolderDialogFragment
import org.yuzu.yuzu_emu.fragments.IndeterminateProgressDialogFragment
import org.yuzu.yuzu_emu.fragments.MessageDialogFragment
import org.yuzu.yuzu_emu.model.AddonViewModel
+import org.yuzu.yuzu_emu.model.DriverViewModel
import org.yuzu.yuzu_emu.model.GamesViewModel
import org.yuzu.yuzu_emu.model.HomeViewModel
import org.yuzu.yuzu_emu.model.TaskState
@@ -58,6 +59,7 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
private val gamesViewModel: GamesViewModel by viewModels()
private val taskViewModel: TaskViewModel by viewModels()
private val addonViewModel: AddonViewModel by viewModels()
+ private val driverViewModel: DriverViewModel by viewModels()
override var themeId: Int = 0
@@ -689,6 +691,7 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
NativeLibrary.initializeSystem(true)
NativeConfig.initializeGlobalConfig()
gamesViewModel.reloadGames(false)
+ driverViewModel.reloadDriverData()
return@newInstance getString(R.string.user_data_import_success)
}.show(supportFragmentManager, IndeterminateProgressDialogFragment.TAG)